<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>test-click</title>
</head>
<body>
  <script src="./js/vue.js"></script>
  <div id="app">
    <button @click="handleClick(1,2)">click1</button>
    <button @click="handleClick1">click1</button>
  </div>
  <script>
    const vm = new Vue({
      el:"#app",
      methods:{
        handleClick(a,b){
          console.log(a+b);
        },
        handleClick1(){
          console.log('handleClick1');
        }
      }
    });
    console.log(vm);
  </script>
</body>
</html>
